// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 支付 POST /api/pay/ */
export async function reCharge(body: API.PayOrderRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseString>('/api/pay/', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 返回交易信息 POST /api/pay/order/info */
export async function payOrder(body: API.PayRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponsePayOrderVo>('/api/pay/order/info', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
